extends Card

func init():
    att.cry = 0
    lv = 1
    type = TYPE.MAGIC
    camp = "m_hearthstone"
    name = "灵魂之火"
    dec = "造成 4点伤害，随机放逐一 张牌。"
    att.atk = 4

func _use(card,cell):
    if card != null :
        hurtCard(card,getMgiAtk())
        
        # 找到手牌
        var cards = []  # 手牌
        for i in getHero().hand.items:
            cards.append(i)
        # 丢牌
        if cards.size() > 0:
            var target:Card = sys.rndListItem(cards)
            # 放逐 ———— 此处可以修改更多，比如加入弃牌池子
            target.exile()

func useSelIf(card,cell):
    if card != null && (card.type == TYPE.CREATURE || card.type == TYPE.HERO) && card.canSel:
        return true
    return false
